
<!DOCTYPE html>
<html>
<head>
<meta charset = "utf-8">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">
<link rel="stylesheet" type="text/css" href="/static/new_ui/new_css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="/static/new_ui/new_css/base_v3.0.css">
<link rel="stylesheet" type="text/css" href="/static/new_ui/new_css/themes.css">
<link rel="stylesheet" type="text/css" href="/static/new_ui/new_css/colpick.css">
<link href="http://ui.fcstatic.naryou.cn/static/libs/easyui/themes/icon.css" rel="stylesheet" type="text/css" />
<link  style="width:16px; height=16px;" rel="shortcut icon" href="/static/new_ui/images/logo_s.png">
<script type="text/javascript" src="/static/new_ui/new_js/jquery.js"></script>
<script type="text/javascript" src="/static/libs/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="/static/new_ui/new_js/base_v3.0.js"></script>
<script type="text/javascript" src="/static/new_ui/new_js/bootstrap.min.js"></script>
<script type="text/javascript" src="/static/new_ui/new_js/build.js"></script>
<script type="text/javascript" src="/static/new_ui/new_js/css3-mediaqueries.js"></script>
<script type="text/javascript" src="/static/new_ui/new_js/themes.plugin.js"></script>

<link rel="stylesheet" type="text/css" href="/static/new_ui/new_css/datepicker.css">
<script type="text/javascript" src="/static/new_ui/new_js/datepicker.js"></script>
<script type="text/javascript" src="/static/new_ui/new_js/pagelation.js"></script>
<script type="text/javascript" src="/static/new_ui/new_js/zepto.touchwipe.min.js"></script>
<script type="text/javascript" src="/static/new_ui/new_js/colpick.js"></script>
<script type="text/javascript">
$.extend({  //jquery extend
	turnOnAjax:function(flag,str) {
	   
		var html = "<div class='modal-backdrop fade in' id='ajaxloadimg' style='z-index:20000'><center><img src='/static/new_ui/img/ajaxloadimg.gif' style='margin: auto;width: 50px;margin-top: 20%;'><p style='color: white;font-weight: bold;'>"+str+"</p></center></div>"
		if(flag == 'on'){
			$("body").append(html)
		}else{
			$("#ajaxloadimg").remove();
		}
		},
});

</script>



<style type="text/css">
   .customer-info-list .info-list-lin:hover .explain-popup{display:none;}
   #biangengjilu:hover+.explain-popup{display:block;}
</style>
<script type="text/javascript">
   var choice = "";
</script>
</head>
<body>		
<div class="container-fluid warp tops">
    <div class="row-fluid">
        <!--标题-按钮-->
        <div class="title-box clearFix">
            <h1 class="page-headers">
                客户详情
            </h1>
        </div>
        <!--菜单栏-->
        <ul class="nav nav-tabs base-menu">
            <li class="active" id="tag1"><a href="#baseInfo" data-toggle="tab">基本信息</a></li>
            <li id="tag2"><a href="#influenceCustomer" onclick="$('.paging').remove()" data-toggle="tab">影响客户</a></li>
        </ul>
        <!--信息-->
        <div id="myCustom" class="tab-content">
            <!--base-info-基本信息-->
            <div id="baseInfo" class="base-info-box tab-pane fade in active">
                <!--customer-img-->
                <div class="base-left-img">
                    <div class="left-img-box">
                        <img class="left-img-icon" src="http://oldimg.fcstatic.naryou.cn/images/default/avatar.png" />
                    </div>  
                </div>
                <!--customer-name-->
                <div class="base-customer-name">
                    <h1><%= mydata.remarkName%></h1>
                    <span><%= mydata.mobile%></span>
                </div>
                <!--left--customer-info-->
                <div class="base-customer-info">
                    <h1>客户信息：</h1>
                    <ul class="customer-info-list">
                        <li><span class="info-list-explain">注册名：<%= mydata.remarkName%></span><span></span></li>
                        <li class="info-list-lin">
                            <span class="info-list-explain">所属顾问：</span>
                            <%= mydata.consultantId%>
                        <li><span class="info-list-explain">推荐人电话：</span><%= mydata.shareMobile%>
                        </li>
                    </ul>
                </div>
                <!--right-customer-info-->
            </div>
            <!--influence-customer-影响客户-->
            <div id="influenceCustomer" class="base-info-box tab-pane fade in">
                <iframe width="100%" height="100%" src="/influence/<%= mydata._id %>" frameborder="0" scrolling="no"></iframe>        
            </div>
            <!---buy-house-coin---购房币-->
            <div id="buyHouse" class="buy-house-box tab-pane fade in">
                <!--customer--img-->
                <div class="base-left-img buy-house-top">
                    <div class="left-img-box">
                        <img class="left-img-icon" src="http://oldimg.fcstatic.naryou.cn/images/default/avatar.png" />
                    </div>
                    
                </div>
                <!--customer-name-->
                <div class="base-customer-name">
                    <h1><%= mydata.remarkName%></h1>
                    <span><%= mydata.mobile%></span>
                    <p class="customer-name-coin">
                        <span>可用金币：</span><strong>0</strong>
                    </p>
                </div>
            </div>

        </div>
    </div>
    <!-----分配置业顾问-->
    <div id="distribute" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
            <h3 class="PopupTitle">分配置业顾问</h3>
        </div>
        <div class="modal-body clearFix">
            <div class="left-group pull-left">
                <ul>
                    
                        <li class="current">销售一组</li>
                    
                </ul>
            </div>
            <div class="right-name pull-right">

                
                    <ul class="current">
                        
                                	<li onclick="$('#consid').val(4638);">王圣学</li>
                                
                            
                        
                            
                              	
                                	<li onclick="$('#consid').val(4417);">梁宁</li>
                                
                            
                        
                            
                              	
                                	<li onclick="$('#consid').val(4194);">梁先森</li>
                                
                            
                        
                            
                              	
                                	<li onclick="$('#consid').val(2948);">张昌展  </li>
                                
                            
                        
                    </ul>
                
            </div>
        </div>
        <div class="modal-footer">
            <input type="hidden" name="memid" id="memid"> <input type="hidden" id="consultName"> <input type="hidden" name="consid" id="consid">
            <button class="button btn-success btn-w100" onclick="bindConsultant(this);">确定</button>
            <button class="button btn-gray btn-w100" data-dismiss="modal" aria-hidden="true">取消</button>
        </div>
    </div>
</div>
<script type="text/javascript" src="/static/libs/util.js"></script>
<script>
    //隐藏微官网访问后面的细节，点击之后展开
    var listDetail = $(".info-list-popup");
    var listFirst = $(".base-customer-info .check-list-detail li:first");
    var listImg = $(".base-customer-info .check-list-detail .icon-bottom");
    listDetail.hide();
    listFirst.toggle(function() {
        listDetail.slideDown();
        listImg.addClass("spin spin2");
    }, function() {
        listDetail.slideUp();
        listImg.removeClass("spin2");
    });
    //点击列表里的查看跳转菜单栏
    $(".change-tab li a").live("click", function() {
        var aObj = $(".base-menu li").find("a[href=" + $(this).attr("href") + "]");
        //aObj.parents("ul").find("li").removeClass("active");
        //aObj.parent("li").addClass("active");
        aObj.click();
    });
</script>
<script type="text/javascript">

$(function(){
    //职业顾问弹出层
    var $ulObj =  $(".right-name ul");
    $(".left-group ul li").each(function(i){
        $(this).live('click',function(){
            $ulObj.removeClass('current').eq(i).addClass('current');
            $(".left-group ul li").removeClass('current');
            $(this).addClass('current');
        });
    });
    $(".right-name ul li").live('click',function(){
        $(".right-name ul li").removeClass('current');
        $(this).addClass('current');
    });
});
    //var choice = "";
    //加载次数
    var loadCount = 0;
    var flagTag = "1";
    function consume() {
        $('#consumeDiv').pageLation(
                {
                    container : "#consumeDiv",//table外面的div对象的ID
                    url : '/merse/consumer/consumer_records/V3.0/414201',//请求地址
                    pageForm : "",//附加条件的form表单   
                    type : 'get',
                    success : function(msg, o) {
                        var str = "";
                        for (var i = 0; i < msg.length; i++) {
                            var row = msg[i];
                            str += '<tr>' + '<td><span>' + row.createTime + '</span></td>' + '<td><span>' + row.changeType.desc + '</span></td>' + '<td><span>' + row.changeReason.desc
                                    + '</span></td>' + '<td><span>' + row.changeMoney + '</span></td></tr>';
                        }
                        $.appendData(str, o);
                    }
                });
    }

    function commission() {
        $('#commissionDiv').pageLation(
                {
                    container : "#commissionDiv",//table外面的div对象的ID
                    url : '/merse/consumer/membercomissionrecord/V3.0/414201/',//请求地址
                    pageForm : "",//附加条件的form表单   
                    type : 'get',
                    success : function(msg, o) {
                        var str = "";
                        for (var i = 0; i < msg.length; i++) {
                            var row = msg[i];
                            console.log(row);
                            str += '<tr>' + '<td><span>' + row.changeMoney + '</span></td>' + '<td><span>' + (row.obtainDate==null?"":row.obtainDate) + '</span></td>' + '<td><span>' + (row.doneMember==null?"":row.doneMember) + '</span></td>'
                                    + '<td><span>' + (row.buildingNo==null?"":row.buildingNo) + '</span></td>' + '<td><span>';
                                    if(row.house==null&&row.isBackHouse){
                                    	str+="(已退房)";
                                    }else{
                                        if(row.house==null){//未选房源

                                        }else{
                                            str+=row.house;
                                        }
                                    }
                                   str+= '</span></td>' + '<td><span>' + (row.withdrawTime==null?"":row.withdrawTime) + '</span></td>' + '<td><span>'
                                    + (row.processTime==null?"":row.processTime) + '</span></td>' + '<td><span>' + row.status + '</span></td></tr>';
                        }
                        $.appendData(str, o);
                    }
                });
    }

    function priceCalculate() {
        $('#priceCalculateDiv').pageLation(
                {
                    container : "#priceCalculateDiv",//table外面的div对象的ID
                    url : '/merse/consumer/detail/PriceCalculate/',//请求地址
                    pageForm : "",//附加条件的form表单
                    type : 'get',
                    param : {
                        "customerId" : "414201"
                    },
                    success : function(msg, o) {
                        var str = "";
                        for (var i = 0; i < msg.length; i++) {
                            var row = msg[i];
                            var intensionLevel = "";
                            if (row.intensionLevel == "1") {
                                intensionLevel = "高";
                            } else if (row.intensionLevel == "2") {
                                intensionLevel = "弱";
                            }
                            var house = "";
                            var buldingHouse = row.buildingHouseSource;
                            house = buldingHouse.buildingNumber + "栋" + buldingHouse.buildingUnit + "单元" + buldingHouse.buildingFloor + buldingHouse.roomNumber;
                            str += '<tr><td><span>' + row.createTime + '</span></td><td><span>' + house + '</span></td><td><span>' + buldingHouse.buildAcreage + '</span></td>' + '<td><span>'
                                    + row.paymentType.desc + '</span></td>' + '<td><span>' + row.totalPrice + '</span></td>' + '<td><span>' + buldingHouse.unitPrice + '</span></td>'
                                    + '<td><span>' + row.discountPercent + '%</span></td>' + '<td><span>' + row.beforeDiscount + '</span></td>' + '<td><span>' + row.afterDiscount + '</span></td>'
                                    + '<td><span>' + intensionLevel + '</span></td></tr>';
                        }
                        $.appendData(str, o);
                    }
                });
    }

    //加载访问次数
    /*function loadVistor() {
        var url = "/merse/consumer/detail/Vistor/";
        $.ajax({
            url : url,
            async : true,
            type : 'post',
            data : {
                "customerId" : "414201"
            },
            dataType : 'json',
            success : function(data) {
                var result;
                try {
                    result = eval(data);
                } catch (e) {
                    result = JSON.parse(data);
                }
                $("#visitorTotalCount").html(result.vistorTotalCount + "天");
                $("#visitorPageCount").html("合计" + result.vistorPageCount + "个页面");
            }
        });
        $(".paging").remove();
    }*/
    //按天查询访问次数
    function loadVistorList() {
        if (loadCount > 0) {
            //已经加载数据
            return;
        }
        var url = "/merse/consumer/detail/Vistor/List/";
        $.ajax({
            url : url,
            async : true,
            type : 'post',
            data : {
                "customerId" : "414201"
            },
            dataType : 'json',
            success : function(data) {
                var result;
                try {
                    result = eval(data);
                } catch (e) {
                    result = JSON.parse(data);
                }
                var str = "";
                $("#vistorDateDiv").html();
                for (var i = 0; i < result.length; i++) {
                    var row = result[i];
                    str += '<li><span>' + row.accessDate + '</span> <span>' + row.count + '个页面</span></li>';
                }
                $("#vistorDateDiv").html(str);
                loadCount++;
            }
        });
    }

    //加载回访、到访记录
    function loadVisitFlow() {
        loadTopVisitFlow();
        loadListVisitFlow();
        $(".paging").remove();
    }
    //加载最新回访、到访记录
    function loadTopVisitFlow() {
        var url = "/merse/consumer/detail/TopVisitFlow/";
        $.ajax({
            url : url,
            async : true,
            type : 'post',
            data : {
                "customerId" : "414201"
            },
            dataType : 'json',
            success : function(data) {
                var result;
                try {
                    result = eval(data);
                } catch (e) {
                    result = JSON.parse(data);
                }
                var nextCallTime = "未设置";
                var nextVisitTime = "未设置";
                if (result.topVisitor != null && result.topVisitor.nextCallTime) {
                    nextCallTime = formatDate(result.topVisitor.nextCallTime, "yyyy-MM-dd");
                }
                if (result.topToVisitor != null && result.topToVisitor.nextVisitTime) {
                    nextVisitTime = formatDate(result.topToVisitor.nextVisitTime, "yyyy-MM-dd");
                }
                var callTime = "";
                if(null!=result.topVisitor && result.topVisitor.visitTime){
                    callTime = formatDate(result.topVisitor.visitTime, "yyyy-MM-dd");
                }
                var visitTime = "";
                if(null!=result.topToVisitor && result.topToVisitor.visitTime){
                    visitTime = formatDate(result.topToVisitor.visitTime, "yyyy-MM-dd");
                }
                if (result.topVisitor != null) {
                    $("#topvisitordiv").html(
                            '<span class="return-visit-time" >第' + result.topVisitorCount + '次通话时间：</span><span class="return-visit-time return-visit-date">' + callTime
                                    + '</span> <span>去电提醒时间：</span><span>' + nextCallTime + '</span>');
                } else {
                    $("#topvisitordiv").html(
                            '<span class="return-visit-time" >第1次通话时间：</span><span class="return-visit-time return-visit-date">暂无</span> <span>去电提醒时间：</span><span>' + nextCallTime + '</span>');
                }
                if (result.topToVisitor != null) {
                    $("#toptovisitordiv").html(
                            '<span>第' + result.topToVisitorCount + '次到访时间：</span><span class="return-visit-date">' + visitTime + '</span> <span>到访提醒时间：</span><span>'
                                    + nextVisitTime + '</span>');
                } else {
                    $("#toptovisitordiv").html('<span>第1次到访时间：</span><span class="return-visit-date">暂无</span> <span>到访提醒时间：</span><span>' + nextVisitTime + '</span>');
                }

            }
        });
    }
    //加载回访、到访记录
    function loadListVisitFlow() {
        var url = "/merse/consumer/detail/ListVisitFlow/";
        $.ajax({
            url : url,
            async : true,
            type : 'post',
            data : {
                "customerId" : "414201"
            },
            dataType : 'json',
            success : function(data) {
                var result;
                try {
                    result = eval(data);
                } catch (e) {
                    result = JSON.parse(data);
                }
                var str = "";
                $("#vistorFlowDiv").empty();
                for (var i = 0; i < result.length; i++) {
                    var row = result[i];
                    var nextCallTime = "未设置";
                    var nextVisitTime = "未设置";
                    var flag = "通话";
                    var visitComment = "";
                    if (row.memberVisit != null && row.memberVisit.nextCallTime) {
                        nextCallTime = formatDate(row.memberVisit.nextCallTime, "yyyy-MM-dd hh:mm");
                    }
                    if (row.memberVisit != null && row.memberVisit.nextVisitTime) {
                        nextVisitTime = formatDate(row.memberVisit.nextVisitTime, "yyyy-MM-dd hh:mm");
                    }
                    if (row.memberVisit != null && row.memberVisit.visitType == 2) {
                        flag = "到访";
                    }
                    if(null != row.memberVisit.visitComment){
                        visitComment = row.memberVisit.visitComment;
                    }
                    str += '<div class="return-visit-one"><div class="welcome-visit">' + flag + '</div><ul class="welcome-visit-text"><li><span class="list-head">' + row.visitTime
                            + '</span></li><li><span class="list-head-explain">意向度：</span><span>' + choice + '</span></li><li><span class="list-head-explain">到访备注：</span><span>'
                            + visitComment + '</span></li><li><span class="list-head-explain">去电提醒：</span><span>' + nextCallTime
                            + '</span></li><li><span class="list-head-explain">到访提醒：</span><span>' + nextVisitTime + '</span></li></ul></div>';
                }
                $("#vistorFlowDiv").append(str);

            }
        });
    }

    //加载购买记录
    function loadListBuyFlow() {
        var url = "/merse/consumer/detail/ListBuyFlow/";
        $.ajax({
            url : url,
            async : true,
            type : 'post',
            data : {
                "customerId" : "414201"
            },
            dataType : 'json',
            success : function(data) {
                var result;
                try {
                    result = eval(data);
                } catch (e) {
                    result = JSON.parse(data);
                }
                console.log(result);
                if (!result) {
                    return;
                }
                $("#processdiv").empty();
                backMoney(result.payType, result.backMoney);
                signContract(result.signContract);
                subScription(result.subScription);
                identChips(result.identChips);

            }
        });
        $(".paging").remove();
    }

    /* 回款 */
    function backMoney(paymentType, row) {
        var str = "";
        if (!row) {
            return;
        }
        for (var i = 0; i < row.length; i++) {
            var amount = 0;
            var obj = row[i];
            if (paymentType == "按揭") {
                var strMsg = "按揭首付回款";
                if(i==0 && row.length>1){
                    strMsg = "按揭银行剩余回款";
                }
                str += '<li class="process"><div class="left-ico"><span class="return-money">回款</span><div class="show return-step"><h1>' + paymentType + '</h1><p><span><span>'+strMsg+'：</span><span>'
                        + obj.payAmount + '元</span></span></p></div></div><div class="right-con"><p class="date">' + obj.strCreateTime + '</p><p class="money">'+paymentType+'</p><p class="money">'+strMsg+'：<span>' + obj.payAmount
                        + '元</span></p></div></li>';

            } else if (paymentType == "一次性") {
                var strMs = "回款金额";
                for (var j = i; j < row.length; j++) {
                    amount += row[j].payAmount;
                }
                if (obj.totalAmount <= obj.payAmount && i == 0) {
                    strMs = "回全款";
                } else if (obj.totalAmount <= amount) {
                    strMs = "剩余房款回款";
                } else if (obj.totalAmount > amount) {
                    strMs = "部分回款金额";
                }
                str += '<li class="process"><div class="left-ico"><span class="return-money">回款</span><div class="show return-step"><h1>' + paymentType + '</h1><p><span><span>' + strMs
                        + '：</span><span>' + obj.payAmount + '元</span></span></p></div></div><div class="right-con"><p class="date">' + obj.strCreateTime + '</p><p class="money">'+paymentType+'</p><p class="money">' + strMs + '：<span>'
                        + obj.payAmount + '元</span></p></div></li>';

            } else if (paymentType == "分期") {
                str += '<li class="process"><div class="left-ico"><span class="return-money">回款</span><div class="show return-step"><h1>' + paymentType + '</h1><p><span><span>回款金额：</span><span>'
                        + obj.payAmount + '元</span></span></p></div></div><div class="right-con"><p class="date">' + obj.strCreateTime + '</p><p class="money">'+paymentType+'</p><p class="money">第' + (row.length - i) + '期回款金额：<span>'
                        + obj.payAmount + '元</span></p></div></li>';
            }

        }
        $("#processdiv").append(str);
    }

    /* 签约 */
    function signContract(row) {
        var str = "";
        if (!row) {
            return;
        }
        for (var i = 0; i < row.length; i++) {
            var obj = row[i];
            str += '<li class="process">' + '<div class="left-ico">' + '<span class="sign-contract">签约</span>' + obj.flowRemark + '</div>' + '<div class="right-con">' + '<p class="date">'
                    + obj.strCreateTime + '</p>' + obj.remark + '</div>' + '</li>';
        }
        $("#processdiv").append(str);
    }

    /* 认购 */
    function subScription(row) {
        var str = "";
        if (!row) {
            return;
        }
        for (var i = 0; i < row.length; i++) {
            var obj = row[i];
            if (obj.flowStatus == "9" || obj.flowStatus == "10") {
                str += '<li class="process">' + '<div class="left-ico">' + '<span class="subscribe">认购</span>' + obj.flowRemark + '</div>' + '<div class="right-con">' + '<p class="date">'
                        + obj.strCreateTime + '</p>' + obj.remark + '</div>' + '</li>';
            } else {
                str += '<li class="process">' + '<div class="left-ico">' + '<span class="subscribe">认购</span> ' + '<div class="show revocation">' + '<h1>' + obj.status + '</h1>' + obj.flowRemark
                        + '</div>' + '</div>' + '<div class="right-con">' + '<p class="date">' + obj.strCreateTime + '</p>' + obj.remark + '</div></li>';

            }

        }
        $("#processdiv").append(str);
    }

    /* 认筹 */
    function identChips(row) {
        var str = "";
        if (!row) {
            return;
        }
        for (var i = 0; i < row.length; i++) {
            var obj = row[i];
            str += '<li class="process">' + '<div class="left-ico">' + '<span class="renchou">认筹</span> ' + '<div class="show revocation">' + '<h1>' + obj.status + '</h1>' + obj.flowRemark + '</div>'
                    + '</div>' + '<div class="right-con">' + '<p class="date">' + obj.strCreateTime + '</p>' + obj.remark + '</div></li>';
        }
        $("#processdiv").append(str);
    }

    /**
     * 添加到黑名单
     */
    function addToBlack() {
        $.ajax({
            url : '/merse/consumer/memberBlack.htm',
            async : false,
            type : 'post',
            data : {
                id : "414201",
                method : 'ADD'
            },
            success : function(data) {
                if (data.success) {
                    window.location.href = window.location.href;
                } else {
                    alert(data.msg);
                }
            }
        })
    }
    /**
     * 移除黑名单
     * @param id
     */
    function addRemoveBlack() {
        $.ajax({
            url : '/merse/consumer/memberBlack.htm',
            async : false,
            type : 'post',
            data : {
                id : "414201"

            },
            success : function(data) {
                if (data.success) {
                    window.location.href = window.location.href;
                } else {
                    alert(data.msg);
                }
            }
        })
    }
    //页面初始化
    function loadPageData() {
        getCurrentTag();
        if (flagTag == "1") {
            //加载回访、到访记录
//            loadVistor();
        } else if (flagTag == "2") {
            $(".paging").remove();
        } else if (flagTag == "3") {
            consume();
        } else if (flagTag == "4") {
            commission();
        } else if (flagTag == "5") {
            loadVisitFlow();
        } else if (flagTag == "6") {
            priceCalculate();
        } else if (flagTag == "7") {
            loadListBuyFlow();
        } else {
//            loadVistor();
        }
    }
    //切换选中的tag页面
    function getCurrentTag() {
        $(".base-menu li").removeClass("active");
        $("#tag" + flagTag).addClass("active");
        var tabId = $("#tag" + flagTag).find("a").attr("href").split("#")[1];
        $("#myCustom .tab-pane").removeClass("active in");
        $("#" + tabId).addClass("active in");
    }
    loadPageData();
    
    //绑定置业顾问
    function bindConsultant(obj){
    	var memberid=document.getElementById('memid').value;
    	var consultantid=document.getElementById('consid').value;
    	 $.ajax({
    		  url:"/merse/customerManage/bindConsultant/"+memberid+"/"+consultantid,
    		  type:"POST",  
    		  data: {memo:"客户详情页面更改"},
             cache: false,
             success:function(data){
            	 statusInfo($(obj),1,"分配置业顾问成功");
            	 window.location.href = "/merse/consumer/detail/"+memberid+"/1";         	 
             }
         });
     }    
</script>
</body>
</html>